home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / ppc-amigaos / include / clib / gadtools_protos.h < prev    next >
C/C++ Source or Header  |  2000-02-28  |  3KB  |  84 lines

  1. #ifndef  CLIB_GADTOOLS_PROTOS_H
  2. #define  CLIB_GADTOOLS_PROTOS_H
  3.  
  4. /*
  5. **    $VER: gadtools_protos.h 39.2 (24.3.92)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  INTUITION_INTUITION_H
  18. #include <intuition/intuition.h>
  19. #endif
  20. #ifndef  UTILITY_TAGITEM_H
  21. #include <utility/tagitem.h>
  22. #endif
  23. #ifndef  LIBRARIES_GADTOOLS_H
  24. #include <libraries/gadtools.h>
  25. #endif
  26.  
  27. /*--- functions in V36 or higher (Release 2.0) ---*/
  28.  
  29. /* Gadget Functions */
  30.  
  31. struct Gadget *CreateGadgetA( unsigned long kind, struct Gadget *gad,
  32.     struct NewGadget *ng, struct TagItem *taglist );
  33. struct Gadget *CreateGadget( unsigned long kind, struct Gadget *gad,
  34.     struct NewGadget *ng, Tag tag1, ... );
  35. void FreeGadgets( struct Gadget *gad );
  36. void GT_SetGadgetAttrsA( struct Gadget *gad, struct Window *win,
  37.     struct Requester *req, struct TagItem *taglist );
  38. void GT_SetGadgetAttrs( struct Gadget *gad, struct Window *win,
  39.     struct Requester *req, Tag tag1, ... );
  40.  
  41. /* Menu functions */
  42.  
  43. struct Menu *CreateMenusA( struct NewMenu *newmenu, struct TagItem *taglist );
  44. struct Menu *CreateMenus( struct NewMenu *newmenu, Tag tag1, ... );
  45. void FreeMenus( struct Menu *menu );
  46. BOOL LayoutMenuItemsA( struct MenuItem *firstitem, APTR vi,
  47.     struct TagItem *taglist );
  48. BOOL LayoutMenuItems( struct MenuItem *firstitem, APTR vi, Tag tag1, ... );
  49. BOOL LayoutMenusA( struct Menu *firstmenu, APTR vi, struct TagItem *taglist );
  50. BOOL LayoutMenus( struct Menu *firstmenu, APTR vi, Tag tag1, ... );
  51.  
  52. /* Misc Event-Handling Functions */
  53.  
  54. struct IntuiMessage *GT_GetIMsg( struct MsgPort *iport );
  55. void GT_ReplyIMsg( struct IntuiMessage *imsg );
  56. void GT_RefreshWindow( struct Window *win, struct Requester *req );
  57. void GT_BeginRefresh( struct Window *win );
  58. void GT_EndRefresh( struct Window *win, long complete );
  59. struct IntuiMessage *GT_FilterIMsg( struct IntuiMessage *imsg );
  60. struct IntuiMessage *GT_PostFilterIMsg( struct IntuiMessage *imsg );
  61. struct Gadget *CreateContext( struct Gadget **glistptr );
  62.  
  63. /* Rendering Functions */
  64.  
  65. void DrawBevelBoxA( struct RastPort *rport, long left, long top, long width,
  66.     long height, struct TagItem *taglist );
  67. void DrawBevelBox( struct RastPort *rport, long left, long top, long width,
  68.     long height, Tag tag1, ... );
  69.  
  70. /* Visuals Functions */
  71.  
  72. APTR GetVisualInfoA( struct Screen *screen, struct TagItem *taglist );
  73. APTR GetVisualInfo( struct Screen *screen, Tag tag1, ... );
  74. void FreeVisualInfo( APTR vi );
  75.  
  76. /*--- functions in V39 or higher (Release 3) ---*/
  77.  
  78. LONG GT_GetGadgetAttrsA( struct Gadget *gad, struct Window *win,
  79.     struct Requester *req, struct TagItem *taglist );
  80. LONG GT_GetGadgetAttrs( struct Gadget *gad, struct Window *win,
  81.     struct Requester *req, Tag tag1, ... );
  82.  
  83. #endif     /* CLIB_GADTOOLS_PROTOS_H */
  84.